{subtemplate jameson_read:qidian/read_header}
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
<style type="text/css">
	.paihang .uk-nav li {font: 16px/32px PingFangSC-Regular,HelveticaNeue-Light,'Helvetica Neue Light','Microsoft YaHei',sans-serif;
    margin-bottom: 12px;
    padding-left: 20px;}
    .paihang .uk-nav li.uk-active{padding-left: 17px;
    border-left: 3px solid #4fb53d;}
</style>
<div uk-grid class="paihang uk-grid-collapse">
    <div class="uk-width-medium">
    	<div class="uk-padding-small back-box">
	        <ul class="uk-nav uk-padding-remove uk-margin-remove">
	            <li class="{if !isset($_GET['type'])}uk-active{/if}"><a href="{eval echo jamesonurl('paihang',0);}">{lang jameson_read:quanbu}{lang jameson_read:paihang}</a></li>
	            <li class="{if $_GET['type']=='views'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=views">{lang jameson_read:yuedubang}</a></li>
	            <li class="{if $_GET['type']=='favores'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=favores">{lang jameson_read:shoucangbang}</a></li>
	            <li class="{if $_GET['type']=='sell'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=sell">{lang jameson_read:changxiaobang}</a></li>
	            <li class="{if $_GET['type']=='scores'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=scores">{lang jameson_read:haopingbang}</a></li>
	            <li class="{if $_GET['type']=='addtime'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=addtime">{lang jameson_read:xinshubang}</a></li>
	            <li class="{if $_GET['type']=='yuepiao'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=yuepiao">{lang jameson_read:yuepiaobang}</a></li>
	            <li class="{if $_GET['type']=='cuigengpiao'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=cuigengpiao">{lang jameson_read:cuigengpiaobang}</a></li>
	            <li class="{if $_GET['type']=='tuijianpiao'}uk-active{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=tuijianpiao">{lang jameson_read:tuijianpiaobang}</a></li>
	        </ul>
	        {if $adv[0]['adv']}
	        <div class="cl" style="width: auto;margin:auto;overflow: hidden;">
	        	{eval echo stripcslashes($adv[0]['adv']);}
	        </div>
	        {/if}
		</div>
    </div>
    <div class="uk-width-expand">
		{if !isset($_GET['type'])}
			<div class="uk-padding-small  back-box uk-margin-left index_paihang">
				<div class="uk-child-width-1-3 mtm mbm uk-grid-small" uk-grid>
					<div>
						<div class="title_2">{lang jameson_read:yuedubang}</div>
						<ul class="uk-margin-remove uk-padding-remove ">
						{loop $paihangbang['yuedu'] $key $book}
						{if $key < $_G['jameson_read']['paihangbang']}
							<li class="cl line">
									<div class="num-box">
										<span class="num{eval echo $key+1;}">{eval echo $key+1;}</span>
									</div>
									<div class="name-box">
										<a class="name" href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
										<i class="author512">{eval echo dnumber($book['views']);}</i>
									</div>
							</li>
						{/if}
						{/loop}
						</ul>
					</div>
					<div>
						<div class="title_2">{lang jameson_read:shoucangbang}</div>
						<ul class="uk-margin-remove uk-padding-remove">
						{loop $paihangbang['shoucang'] $key $book}
						{if $key < $_G['jameson_read']['paihangbang']}
								<li class="cl line">
									<div class="num-box">
										<span class="num{eval echo $key+1;}">{eval echo $key+1;}</span>
									</div>
									<div class="name-box">
										<a class="name" href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
										<i class="author512">{$book['favores']}</i>
									</div>
								</li>
						{/if}
						{/loop}
						</ul>
					</div>
					<div>
						<div class="title_2">{lang jameson_read:haopingbang}</div>
						<ul class="uk-margin-remove uk-padding-remove">
						{loop $paihangbang['haoping'] $key $book}
						{if $key < $_G['jameson_read']['paihangbang']}
								<li class="cl line">
									<div class="num-box">
										<span class="num{eval echo $key+1;}">{eval echo $key+1;}</span>
									</div>
									<div class="name-box">
										<a class="name" href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
										<i class="author512">{if $book['scores'] && $book['dpcount']}{eval echo round($book['scores']/$book['dpcount']);}{else}{$book['author']}{/if}</i>
									</div>
								</li>
						{/if}
						{/loop}
						</ul>
					</div>
					<div>
						<div class="title_2">{lang jameson_read:changxiaobang}</div>
						<ul class="uk-margin-remove uk-padding-remove">
						{loop $paihangbang['sell'] $key $book}
						{if $key < $_G['jameson_read']['paihangbang']}
								<li class="cl line">
									<div class="num-box">
										<span class="num{eval echo $key+1;}">{eval echo $key+1;}</span>
									</div>
									<div class="name-box">
										<a class="name" href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
										<i class="author512">{$book['author']}</i>
									</div>
								</li>
						{/if}
						{/loop}
						</ul>
					</div>
					<div>
						<div class="title_2">{lang jameson_read:xinshubang}</div>
						<ul class="uk-margin-remove uk-padding-remove">
						{loop $paihangbang['zuixin'] $key $book}
						{if $key < $_G['jameson_read']['paihangbang']}
								<li class="cl line">
									<div class="num-box">
										<span class="num{eval echo $key+1;}">{eval echo $key+1;}</span>
									</div>
									<div class="name-box">
										<a class="name" href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
										<i class="author512">{$book['author']}</i>
									</div>
								</li>
						{/if}
						{/loop}
						</ul>
					</div>
					<div>
						<div class="title_2">{lang jameson_read:yiwanjie}</div>
						<ul class="uk-margin-remove uk-padding-remove">
						{loop $paihangbang['end'] $key $book}
						{if $key < $_G['jameson_read']['paihangbang']}
								<li class="cl line">
									<div class="num-box">
										<span class="num{eval echo $key+1;}">{eval echo $key+1;}</span>
									</div>
									<div class="name-box">
										<a class="name" href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
										<i class="author512">{$book['author']}</i>
									</div>
								</li>
						{/if}
						{/loop}
						</ul>
					</div>
				</div>
			</div>

		{else}
			<div class="uk-padding back-box uk-margin-left">
				<div class="title_2">
				{if $type=='views'}
				{lang jameson_read:yuedubang}
				{elseif $type=='favores'}
				{lang jameson_read:shoucangbang}
				{elseif $type=='scores'}
				{lang jameson_read:haopingbang}
				{elseif $type=='sell'}
				{lang jameson_read:changxiaobang}
				{elseif $type=='addtime'}
				{lang jameson_read:xinshubang}
				{elseif $type=='cuigengpiao'}
				{lang jameson_read:cuigengpiaobang}
				{elseif $type=='yuepiao'}
				{lang jameson_read:yuepiaobang}
				{elseif $type=='tuijianpiao'}
				{lang jameson_read:tuijianpiaobang}
				{/if}
				</div>
				{if $books}
				<div class="uk-grid-collapse uk-child-width-1-2 shaixuanbooklist zqy_1" uk-grid>
					{loop $books $key $book}
						<div class="cl uk-margin-top">
							<div class="book-img z">
			                    <a href="{eval echo jamesonurl('book',$book['book_id']);}">
			                        <img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}">
			                    </a>
			                </div>
			                <div class="book-info">
	                            <h4><a href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a></h4>
	                            <a class="xg1 xs1 xw0" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
	                            <div class="tag512">
	                            	{if $book['category_name']}
	                                 <a class="org" href="{eval echo jamesonurl('shaixuan','shaixuan','category_id',$book['category_id']);}">{$book['category_name']}</a>
	                            	{/if}
	                                <span class="green">{if $book['plan']}{lang jameson_read:yiwanjie}{else}{lang jameson_read:lianzaizhong}{/if}</span>
	                                <span class="blue">
	                                {if $type=='sell'}
	                                	{$book['total']}
	                                {elseif $type=='scores'}
		                                {eval echo 2*round($book[$type]/($book['dpcount']?$book['dpcount']:1),1);}
	                                {else}
		                                {eval echo dnumber($book[($type=='addtime'?'zishu':$type)]);}
	                                {/if}
	                                </span>
	                            </div>
	                            <p class="desco">
	                                   {$book['desco']}
	                            </p>
	                        </div>
						</div>
					{/loop}
				</div>
				<div class="cl uk-margin-top ">{$pageshow}</div>
				{else}
					<div class="uk-alert-danger uk-padding" uk-alert>{lang jameson_read:zanwujilu}</div>
				{/if}
			</div>
		{/if}
    </div>
</div>
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
{subtemplate jameson_read:qidian/read_footer}